package main

import (
	"dbManager/example/dao"
	"dbManager/example/engine"
	"dbManager/example/model"
	"dbManager/example/service"
	"log"

	_ "github.com/mattn/go-sqlite3"
)

func main() {
	monitorService := service.NewMonitorService(*dao.GMonitorMapper)
	ok := monitorService.Insert(engine.DB.Session, *model.NewMonitor(7, 34.5, "设备高温", 9))
	if ok {
		log.Println("加入成功")
	}
}
